/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 小组和人员的关联Entity
 * @author JiangYH
 * @version 2017-02-08
 */
public class WbMtGroupStaff extends DataEntity<WbMtGroupStaff> {
	
	private static final long serialVersionUID = 1L;
	private String groupId;		// 小组ID
	private String staffId;		// 人员ID
	private String leader; // 是否组长 1是 0否
	private String staffName;
	
	public WbMtGroupStaff() {
		super();
	}

	public WbMtGroupStaff(String id){
		super(id);
	}

	@Length(min=0, max=11, message="小组ID长度必须介于 0 和 11 之间")
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	
	@Length(min=0, max=11, message="人员ID长度必须介于 0 和 11 之间")
	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getLeader() {
		return leader;
	}

	public void setLeader(String leader) {
		this.leader = leader;
	}

	public String getStaffName() {
		return staffName;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
}